% This package facilitates maintenance of
% this multi-file project.
\RequirePackage{subfiles}

% The draft mode will be used
% when the subfile (instead of the main file) is typeset.
\ifSubfilesClassLoaded{%
    \LoadClass[%
        a4paper,
        draft,
        % fontset=none,
        leqno,
        % oneside,
        punct=kaiming,
        zihao=-4,
    ]{ctexbook}
}{%
    \documentclass[%
        a4paper,
        % draft,
        % fontset=none,
        leqno,
        % oneside,
        punct=kaiming,
        zihao=-4,
    ]{ctexbook}
}

% settings
\input{cxapitroj/agordoj.tex}

\begin{document}

\frontmatter

% cover
\subfile{cxapitroj/kovrilo.tex}

% previous endpaper (the filename in Esperanto was not good)
\subfile{cxapitroj/antauxa fina papero.tex}

% dedication
\subfile{cxapitroj/dedicxo.tex}

% table of contents
\subfile{cxapitroj/enhavtabelo.tex}

% preface
\subfile{cxapitroj/antauxparolo.tex}

% acknowledgements
\subfile{cxapitroj/agnosko.tex}

% notice of dependence
\subfile{cxapitroj/dependeco.tex}

\mainmatter

% determinants
\chapter{行列式}

行列式是一个有用的工具.
本章主要介绍方阵的行列式的定义与基本的性质.

\clearpage

% prerequisites
\subfile{cxapitroj/determinanto - antauxkondicxoj.tex}

% determinants
\subfile{cxapitroj/determinanto - determinantoj.tex}

% properties of determinants
\subfile{cxapitroj/determinanto - ecoj de determinantoj.tex}

% matrix multiplication
\subfile{cxapitroj/determinanto - matrica multipliko.tex}

% systems of linear equations (part 1)
\subfile{cxapitroj/determinanto - SdLE 1.tex}

% systems of linear equations (part 2)
\subfile{cxapitroj/determinanto - SdLE 2.tex}

% systems of linear equations (part 3)
\subfile{cxapitroj/determinanto - SdLE 3.tex}

% Binet-Cauchy
\subfile{cxapitroj/determinanto - BC.tex}

% miscellaneous
\subfile{cxapitroj/determinanto - diversajxoj.tex}

% the last lesson
\subfile{cxapitroj/determinanto - la lasta leciono.tex}

\appendix

% 2-variable polynomials of degree 2
\subfile{cxapitroj/duvariablaj polinomoj de grado du.tex}

% mathematical induction
\subfile{cxapitroj/matematika indukto.tex}

% afterstories
\chapter{Afterstories}

本章是关于行列式的后续的内容 (\angla{afterstories}).

\clearpage

% stories about (properties of determinants) and (permutations)
% and (the Binet-Cauchy formula)
\subfile{cxapitroj/postrakonto - ecoj kaj permutajxoj kaj BC.tex}

% stories about properties of determinants
\subfile{cxapitroj/postrakonto - ecoj de determinantoj.tex}

% stories about nonzero and positive determinants
\subfile{cxapitroj/postrakonto - nenulaj determinantoj.tex}

% stories about classical adjoints (adjugates)
\subfile{cxapitroj/postrakonto - klasikaj adjunktaj matricoj.tex}

% stories about pfaffians
\subfile{cxapitroj/postrakonto - pfaffoj.tex}

% stories about the rank of a matrix
\subfile{cxapitroj/postrakonto - ranko.tex}

% stories about resultants
\subfile{cxapitroj/postrakonto - rezultantoj.tex}

% miscellaneous materials
\subfile{cxapitroj/postrakonto - diversajxoj.tex}

% (new) closing remark
\subfile{cxapitroj/gxis la revido.tex}

% This is a label that enables one to know
% how many pages there are.
\label{libro:LaLastaPagxo}

\backmatter

% bibliography
\subfile{cxapitroj/bibliografio.tex}

% list of symbols
\subfile{cxapitroj/listo de simboloj.tex}

% list of words
\subfile{cxapitroj/listo de vortoj.tex}

% colophon
\subfile{cxapitroj/kolofono.tex}

% the last page
\subfile{cxapitroj/la lasta pagxo.tex}

\end{document}

La dokumento finiĝas ĉi tie.
The document ends here.
文档在此结束.

Vi povas skribi memorandojn ĉi tie. Ili ne apartenas al ĉi tiu dokumento. Linioj ne devas komenciĝi per procenta signo.
You can write memoranda here. They do not belong to this document. Lines do not have to begin with a percent sign.
您可以在此写被记下的内容. 它们不属于此文档. 行不必以百分号开始.

Ten heavenly stems: 甲乙丙丁戊己庚辛壬癸
Twelve earthly branches: 子丑寅卯辰巳午未申酉戌亥
Listing comma: 、

The regular expression for a Chinese character:
([\u3007\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF])

Execute `git log -1` to print the last commit.

The regular expression that matches two or more consecutive spaces that are not at the beginning of a line and are not at the end of a line:
(?<!^|\s)\s{2,}(?!$)
One can also replace "\s" by " ".
$ % Well, let me insert an enclosing $ here
% to match the $ in the regular expression
% so that text editors can be pleased.

Good news!
I use subfiles to maintain the project better.
Taking advantage of the feature
that contents after \verb|\end{document}|
are ignored
(whether the file is the main file or a subfile),
I can write more remarks more freely (in a more libre manner).
